package com.gxitsky.controller;

import com.gxitsky.response.ResponseModel;
import com.gxitsky.service.WebSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gxing
 * @desc 站点
 * @date 2022/12/6
 */
@RestController
@RequestMapping("/website")
public class WebSiteController {

    @Autowired(required = false)
    private WebSiteService webSiteService;

    /**
     * @desc 发布站点资源
     * @author gxing
     * @date 2022/12/6
     */
    @RequestMapping("/publish/resource")
    public ResponseModel<?> publishWebSiteResource() {
        webSiteService.pushWebSiteResource();
        return ResponseModel.success();
    }
}
